package org.jeecgframework.web.service;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.ZyEquipmentTypeEntity;

public interface ZyEquipmentTypeServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(ZyEquipmentTypeEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(ZyEquipmentTypeEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(ZyEquipmentTypeEntity t);

	/**@author xiul
	 * 2016-6-30 上午10:52:37
	 * Description 根据 父级 typeDesc 和 父父级typeDesc 查询 typeDesc
	 * @param typeDesc 父级typeDesc
	 * @param pTypeDesc 父父级typeDesc
	 */
	public List<Map<String, Object>> queryEsTypeByPTypeDescAndPPTypeDesc(
			HttpServletRequest request, String typeDesc, String pTypeDesc);
}
